import request from '@/utils/request'

// 查询商品主表列表
export function listGoods_new(query) {
  return request({
    url: '/goodsInfoNew/goods_new/list',
    method: 'get',
    params: query
  })
}

// 查询商品主表详细
export function getGoods_new(goodsId) {
  return request({
    url: '/goodsInfoNew/goods_new/' + goodsId,
    method: 'get'
  })
}

// 新增商品主表
export function addGoods_new(data) {
  return request({
    url: '/goodsInfoNew/goods_new',
    method: 'post',
    data: data
  })
}

// 修改商品主表
export function updateGoods_new(data) {
  return request({
    url: '/goodsInfoNew/goods_new',
    method: 'put',
    data: data
  })
}

// 删除商品主表
export function delGoods_new(goodsId) {
  return request({
    url: '/goodsInfoNew/goods_new/' + goodsId,
    method: 'delete'
  })
}
